package com.zerui.manager.web.cmd;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Author wh
 * @create_time 2023-09-07 16:29
 */
@Getter
@Setter
@ToString
public class DeviceGroupAddCmd {

    @ApiModelProperty(value = "设备分组名称")
    @NotBlank(message = "设备分组名称不能为空")
    @Size(min = 1,max = 30)
    private String orgName;

    @ApiModelProperty(value = "上级分组id")
    @NotNull(message = "上级分组id不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long supId;
}
